#  author:张靖昆 date:2020/3/4 name:6_切片 IDE:PyCharm

list03=['a','b','c','d','e','f','g']

print(list03[::2])

# 反向切片

# 1. 反转
list04=list03[::1]
print(list04)
# 前三个
print(list03[:3])
# 后三个
print(list03[-1:-4:-1])
print(list03[-3:])

print(type(list03))